<?php
class App_Source_Media_Validator extends Mozg_Property_Validator
{
	protected function ValidateFileCustom($file)
	{
		if (isset($file['error']))
		{
			$this->SetErrorMessage('fileCustom', $file['error']);
			return false;
		}
		else if (!strlen($file['file']))
		{
			$this->SetErrorMessage('fileCustom', Mozg_Lang::_('File not uploaded'));
			return false;
		}

		return true;
	}

	protected function ValidateThumbCustom($file)
	{
		if (isset($file['error']))
		{
			$this->SetErrorMessage('thumbCustom', $file['error']);
			return false;
		}

		return true;
	}
}